﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Threading;
using System.Web.Mvc;
using orienta.Models;
using orienta.Helper;
using System.Diagnostics;

namespace orienta.Controllers
{
    public class HomeController : Controller
    {
        private GoodTireEntities db = new GoodTireEntities();

        public ActionResult Index()
        {
            ViewBag.Message = "Bienvenidos al Sistema ORIENTA";

            return RedirectToAction("LogOn","Account");
        }

        public ActionResult About()
        {
            return View();
        }

        private void InciarWorkerThreadEnvioMail(string address, string subject, string body)
        {
            /*
            var task = new Thread(()=>MailHelper.SendEmail(address, subject, body));
            task.Name = "GenerarEnvioMail";
            task.IsBackground = true;
            Trace.TraceInformation("MAIL: INICIANDO envio de Mail " + DateTime.Now);
            Thread.Sleep(59000);
            task.Start();
             */
        }
    }
}
